package com.dog.basics.service.common;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dog.basics.bean.dto.admin.common.BannerAddDto;
import com.dog.basics.bean.dto.admin.common.BannerEditDto;
import com.dog.basics.bean.dto.admin.common.BannerFromDto;
import com.dog.basics.bean.model.common.SysBanner;
import com.dog.basics.bean.vo.admin.common.BannerVo;
import com.dog.basics.common.util.PageParam;

import java.util.List;

/**
 * <p>
 * 轮播图 服务类
 * </p>
 *
 * @author fengjukang
 * @since 2019-12-13
 */
public interface ISysBannerService extends IService<SysBanner> {
	/**
	 * @Description: 分页轮播图列表
	 * @Param: BannerFromDto
	 * @return: IPage<PlatePageVo>
	 * @Author: wph
	 * @Date:
	 */
	IPage<BannerVo> getPageList(PageParam page, BannerFromDto obj);
	/**
	 * @Description: APi轮播图
	 * @Param: code
	 * @return: BannerVo
	 * @Author: wph
	 * @Date:
	 */
	List<BannerVo> getApiBannerVoInfo( String code);



	/**
	 * @Description: 增加轮播图
	 * @Param: BannerAddDto
	 * @return: Boolean
	 * @Author: wph
	 * @Date: 2020/05/29  0027
	 */
	Boolean saveObj(BannerAddDto obj);

	/**
	 * @Description: 修改轮播图
	 * @Param: BannerEditDto
	 * @return: Boolean
	 * @Author: wph
	 * @Date: 2020/05/29  0027
	 */
	Boolean editObj(BannerEditDto obj);


	/**
	 * @Description: 删除轮播图
	 * @Param: ids
	 * @return: Boolean
	 * @Author: wph
	 * @Date: 2020/05/29  0027
	 */
	Boolean deleteObj(List<Long> ids);
}
